package com.findFish.fish.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.fish.mapper.FishFeedingMapper;
import com.findFish.fish.domain.FishFeeding;
import com.findFish.fish.service.IFishFeedingService;

/**
 * 鱼类投喂记录Service业务层处理
 * 
 * @author admin
 * @date 2025-04-01
 */
@Service
public class FishFeedingServiceImpl implements IFishFeedingService 
{
    @Autowired
    private FishFeedingMapper fishFeedingMapper;

    /**
     * 查询鱼类投喂记录
     * 
     * @param id 鱼类投喂记录主键
     * @return 鱼类投喂记录
     */
    @Override
    public FishFeeding selectFishFeedingById(Long id)
    {
        return fishFeedingMapper.selectFishFeedingById(id);
    }

    /**
     * 查询鱼类投喂记录列表
     * 
     * @param fishFeeding 鱼类投喂记录
     * @return 鱼类投喂记录
     */
    @Override
    public List<FishFeeding> selectFishFeedingList(FishFeeding fishFeeding)
    {
        return fishFeedingMapper.selectFishFeedingList(fishFeeding);
    }

    /**
     * 新增鱼类投喂记录
     * 
     * @param fishFeeding 鱼类投喂记录
     * @return 结果
     */
    @Override
    public int insertFishFeeding(FishFeeding fishFeeding)
    {
        return fishFeedingMapper.insertFishFeeding(fishFeeding);
    }

    /**
     * 修改鱼类投喂记录
     * 
     * @param fishFeeding 鱼类投喂记录
     * @return 结果
     */
    @Override
    public int updateFishFeeding(FishFeeding fishFeeding)
    {
        return fishFeedingMapper.updateFishFeeding(fishFeeding);
    }

    /**
     * 批量删除鱼类投喂记录
     * 
     * @param ids 需要删除的鱼类投喂记录主键
     * @return 结果
     */
    @Override
    public int deleteFishFeedingByIds(Long[] ids)
    {
        return fishFeedingMapper.deleteFishFeedingByIds(ids);
    }

    /**
     * 删除鱼类投喂记录信息
     * 
     * @param id 鱼类投喂记录主键
     * @return 结果
     */
    @Override
    public int deleteFishFeedingById(Long id)
    {
        return fishFeedingMapper.deleteFishFeedingById(id);
    }
}
